using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN PhongHocServiceBase****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:07/10/2010 39:07:23</para>
	/// <para>Class Name: PhongHocServiceBase</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class PhongHocService : IPhongHocService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: PhongHoc_ID</para>
		/// <para>Output: PhongHocEntity</para>
		///</summary>
		public PhongHocEntity SelectOne(int PhongHoc_ID){
			PhongHocDAO dao = new PhongHocDAO();
			return dao.SelectOne(PhongHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectOneByMaPhong</para>
		/// <para>Input: MaPhong</para>
		/// <para>Output: PhongHocEntity</para>
		///</summary>
		public PhongHocEntity SelectOneByMaPhong(string MaPhong){
			PhongHocDAO dao = new PhongHocDAO();
			return dao.SelectOneByMaPhong(MaPhong);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of PhongHocEntity</para>
		///</summary>
		public List<PhongHocEntity> SelectAll(){
			PhongHocDAO dao = new PhongHocDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			PhongHocDAO dao = new PhongHocDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of PhongHocEntity</para>
		///</summary>
		public List<PhongHocEntity> SelectAllFilter(string strFilter){
			PhongHocDAO dao = new PhongHocDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			PhongHocDAO dao = new PhongHocDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: Save</para>
		/// <para>Input: PhongHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(PhongHocEntity o){
			PhongHocDAO dao = new PhongHocDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: Save</para>
		/// <para>Input: PhongHocEntity</para>
		/// <para>Output: PhongHocEntity</para>
		///</summary>
		public PhongHocEntity SaveRet(PhongHocEntity o){
			PhongHocDAO dao = new PhongHocDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of PhongHocEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<PhongHocEntity> list){
			PhongHocDAO dao = new PhongHocDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of PhongHocEntity</para>
		/// <para>Output: List of PhongHocEntity</para>
		///</summary>
		public List<PhongHocEntity> SaveListRet(List<PhongHocEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: Update</para>
		/// <para>Input: PhongHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(PhongHocEntity o){
			PhongHocDAO dao = new PhongHocDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of PhongHocEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<PhongHocEntity> list){
			PhongHocDAO dao = new PhongHocDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: UpdateMaPhong</para>
		/// <para>Input: NewMaPhong,PhongHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaPhong(string NewMaPhong,int PhongHoc_ID){
			PhongHocDAO dao = new PhongHocDAO();
			return dao.UpdateMaPhong(NewMaPhong,PhongHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: UpdateSucChua</para>
		/// <para>Input: NewSucChua,PhongHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateSucChua(int NewSucChua,int PhongHoc_ID){
			PhongHocDAO dao = new PhongHocDAO();
			return dao.UpdateSucChua(NewSucChua,PhongHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: UpdateTang</para>
		/// <para>Input: NewTang,PhongHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTang(int NewTang,int PhongHoc_ID){
			PhongHocDAO dao = new PhongHocDAO();
			return dao.UpdateTang(NewTang,PhongHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: UpdateThuTu</para>
		/// <para>Input: NewThuTu,PhongHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateThuTu(int NewThuTu,int PhongHoc_ID){
			PhongHocDAO dao = new PhongHocDAO();
			return dao.UpdateThuTu(NewThuTu,PhongHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: UpdateKhuNha_ID</para>
		/// <para>Input: NewKhuNha_ID,PhongHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateKhuNha_ID(int NewKhuNha_ID,int PhongHoc_ID){
			PhongHocDAO dao = new PhongHocDAO();
			return dao.UpdateKhuNha_ID(NewKhuNha_ID,PhongHoc_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: Delete</para>
		/// <para>Input: PhongHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(PhongHocEntity o){
			PhongHocDAO dao = new PhongHocDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:07/10/2010 39:07:23</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: PhongHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int PhongHoc_ID){
			PhongHocDAO dao = new PhongHocDAO();
			return dao.DeleteByID(PhongHoc_ID);
		}
		#endregion

		#region Select join to KhuNha functions
		#endregion

		#region Select,delete by PhongHoc_ID functions
		#endregion

		#region Select,delete by KhuNha_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END PhongHocWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

